package com.minelx.scriptbuilder.script.attribute.function;

import com.minelx.scriptbuilder.script.ScriptContext;
import com.minelx.scriptbuilder.script.attribute.value.IAttribute;

public class PrintFunction implements Function {

	private final ScriptContext context;

	public PrintFunction(ScriptContext context) {
		this.context = context;
	}

	@Override
	public IAttribute execute(Params params) {
		context.getOutputStream().print(params.at(0).value().asString());
		return null;
	}
}
